package com.head.firtst.ch3;

/**
 * @author guohuixin
 * @date 2018/8/25
 */
public class Test {
    public static void main(String[] args) {
        Beverage beverage = new Moca();
        System.out.println("$"+ beverage.cost());

        beverage = new MilkDecorator(beverage);
        System.out.println("$"+ beverage.cost());

        beverage = new SugerDecotator(beverage);
        System.out.println("$"+ beverage.cost());
    }
}
